<extend name="./Public/main" />
<block name="main">
<div class="row J_mainContent" id="content-main" style="overflow-Y:scroll;">
              
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                   
                    <div class="ibox-content">
                        <form method="post" class="form-horizontal" action="{:U('Config/edit')}">
                            <volist name="config" id="vo" >
	                            <div class="form-group">
	                                <label class="col-sm-2 control-label">{$key}</label>
	
	                                <div class="col-sm-10">
	                                    <input type="text" class="form-control" readonly name="{$key}" <if condition="$key eq 'token' || $key eq 'token_time'">readonly</if>  value="{$vo[0]}" style="display:inline-block">
	                                </div>
	                                
	                            </div>
                            </volist>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">确定</button>
                                    <button class="btn btn-white" type="submit">取消</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
   
 </div>
  <!-- 添加弹出框开始 -->
        <div id="AddAlert" style="display:none;position:absolute;left:0px;top:0px;z-index:9999;background:rgba(198,198,198,0.5);width:100%;height:100%">
	        <div class="col-sm-6" style="margin-left:470px;margin-top:270px">
	                <div class="ibox float-e-margins">
	                    <div class="ibox-title">
	                        <h5>添加菜单</h5>
	                        <div class="ibox-tools">
	                            <a class="close-link" onclick="addClose()">
	                                <i class="fa fa-times"></i>
	                            </a>
	                        </div>
	                    </div>
	                    <div class="ibox-content">
	                        <div class="row">
	                            <div class="col-sm-12">
	                                <form role="form" action="{:U('Config/add')}" method="post">
	                                    <input type="hidden" name="parent_id">
	                                    <div class="form-group">
	                                        <label>key值</label>
	                                        <input type="text"  name="key" class="form-control">
	                                    </div>
	                                    <div class="form-group">
	                                        <label>value值</label>
	                                        <input type="text"  name="value" class="form-control">
	                                    </div>
	                                    <div>
	                                        <button class="btn btn-sm btn-primary pull-right m-t-n-xs" type="submit" style="margin-right:450px">
	                                           <strong>添加</strong>
	                                        </button>
	                                        
	                                    </div>
	                                </form>
	                            </div>
	                        </div>
	                    </div>
	                </div>
	            </div>
            </div>
        <!-- 添加弹出框结束 -->
        <script>
        function addShow(pid){
        	$("#AddAlert input[name='parent_id']").val(pid);
        	$("#AddAlert").css("display","block");
        }
        function addClose(){
        	$("#AddAlert").css("display","none");
        }
        </script>
</block>